package com.sdy.resdir.biz.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cgj
 * @since 2020-01-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="FlowHistories对象", description="")
public class FlowHistories extends BaseModel {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "")
    @TableId
    private Integer id;

    /**
     * 需要流转的需求id
     */
    @ApiModelProperty(value = "需要流转的需求id")
    private Integer requirementId;

    /**
     * 流转发起部门id
     */
    @ApiModelProperty(value = "流转发起部门id")
    private Integer flowInitateDeptId;

    /**
     * 流转发起部门名称
     */
    @ApiModelProperty(value = "流转发起部门名称")
    private String flowInitateDeptName;

    /**
     * 流转接收部门id
     */
    @ApiModelProperty(value = "流转接收部门id")
    private Integer flowReceiveDeptId;

    /**
     * 流转接收部门名称
     */
    @ApiModelProperty(value = "流转接收部门名称")
    private String flowReceiveDeptName;

    /**
     * 流转开始时间
     */
    @ApiModelProperty(value = "流转开始时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date flowStartTime;

    /**
     * 流转原因
     */
    @ApiModelProperty(value = "流转原因")
    private String folwReason;

    /**
     * 流转单号
     */
    @ApiModelProperty(value = "流转单号")
    private String flowNum;

    /**
     * 状态(1.待处理 2.已流转 3.已回复)
     */
    @ApiModelProperty(value = "状态(1.待处理 2.已流转 3.已回复)")
    private Integer requirementState;

    /**
     * 是否是初始申请(0.否 1.是)
     */
    @ApiModelProperty(value = "是否是初始申请(0.否 1.是)")
    private Integer isStart;

}
